<?php

namespace App\Http\Requests;

class Article extends Base
{

    public function rules()
    {
        $rules = [
            'title' => 'required',       
            'content' => 'required',
        ];
        return $rules;

    }

    public function messages()
    {
        return [
            'title.required' => '请填写标题',
            'content.required' => '请填写内容'
        ];
    }
}
